//引入axios
import http from '@/utils/request.js';

//封装接口方法
//获取学员信息
export let getStuApi = params => http.get('/students/getstulist', { params });
//增加学员信息
export let addStuApi = data => http.post('	/students/addstu', data);
//删除学员信息
export let delStuApi = sId => http.get('/students/delstu?sId=' + sId);
//修改学员信息
export let editStuApi = data => http.post('/students/updatestu', data);
//搜索学员信息
export let searchStuApi = params => http.get('/students/searchstu', { params });
//上传学员头像接口
export let uploadStuApi = data => http.post('/students/uploadStuAvatar', data);

//导出
export default { getStuApi, addStuApi, delStuApi, editStuApi, searchStuApi, uploadStuApi };
